<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>原型链</title>
</head>
<body>
<script>
  function Star (uname,uage) {
    this.uname = uname;
    this.uage = uage;
  }
  Star.prototype.sing = function () {
      console.log('我会唱歌');
  }
  var ldh = new Star('刘德华',18);
  /* ldh的原型对象 */
  console.log(ldh.__proto__);/*Star的prototype*/
  /*Star.prototype 的原型对象 */
  console.log(ldh.__proto__.__proto__);/* object.prototype*/
  /* object.prototype的 原型对象呢 */
  console.log(ldh.__proto__.__proto__.__proto__);/* object.prototype null*/
</script>
</body>
</html>